var file = $.cookie('file')
console.log(file)

$('form').submit(function(e){
    e.preventDefault()

    $.post('/answer/' + file,$(this).serialize(),function(res){
        if (res.code == 'success') {
            location.href = '/'
        }else alert(res.message)
    })
})